import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import test.model.User;
import test.service.UserService;


public class DirectTest {
	
	public static void main(String[] args) {
		ApplicationContext appContext =
            new ClassPathXmlApplicationContext("applicationContext.xml");
        
		UserService service = appContext.getBean("userService", UserService.class);
		User u = service.getUser(1);
		System.out.println(u.getName());
	}

}
